package com.ken.student.service;

import com.ken.common.dto.signInDto;
import com.ken.common.pojo.answer;
import com.ken.common.pojo.course;
import com.ken.common.pojo.studyRecord;
import com.ken.common.pojo.wrong_question;
import com.ken.common.result.Result;
import com.ken.student.dto.answerDto;
import com.ken.student.dto.submit_homeworkDto;
import com.ken.student.pojo.knowledge_statistics;
import com.ken.student.pojo.submit_question;
import com.ken.student.vo.*;

import java.io.IOException;
import java.util.List;

public interface studentService {
    Result<String> signIn(signInDto dto) throws IOException;
    List<homeworkVo> getHomeworkById(String student_id);
    List<examVo> getExamById(String student_id);
    answer post_answer(answer answer);
    List<messageVo> getStudentMessage(String student_id);
    List<courseVo> getCourseByStudentId(String student_id);
    void submit_homework(submit_homeworkDto dto);
    answer getAnswerById(String student_id,String question_id);
    boolean is_post(answer answer);
    List<answer> is_post2(List<String> questionIds);
    List<studyRecord> getLessonRecord(String lesson_id,String student_id);
    List<knowledge_statistics> getLessonQuestions(String student_id, String lesson_id, String knowledgePoint_id);
    boolean homework_isPost(String student_id,String homework_id);
    studyTimeVo getCourseStudyTime(String course_id,String student_id);
    List<wrong_question> save_wrongQuestion(List<wrong_question> wrongQuestions);
    List<wrong_questionVo> get_wrongQuestion(String student_id);
    void change_wrongQuestion(String wrong_questionId);
    void delete_wrongQuestion(String wrongQuestionId);
}
